<template>
	<el-drawer title="Excel报表详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="排序号" prop="sortNo">{{form.sortNo}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="报表标题" prop="title">{{form.title}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="所属分类" prop="biExcelSort">{{form.sortName}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="是否启用" prop="status">
								<el-tag type="danger" size="small" v-if="form.status==='0'">停用</el-tag>
								<el-tag type="success" size="small" v-else-if="form.status==='1'">启用</el-tag>
								<el-tag type="info" size="small" v-else>未知</el-tag>
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="开始时间" prop="beginTime">{{form.beginTime}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="结束时间" prop="endTime">{{form.endTime}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明">{{form.remark}}
					</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
export default {
	emits: ['success', 'closed'],
	components: {
	},
	data() {
		return {
			loading: false,
			form: {
				manageId: '',
				sortNo: 0,
				title: '',
				sortName: '',
				status: '0',
				beginTime:'',
				endTime:'',
				remark: '',
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.form.manageId = data.manageId
			this.form.sortNo = data.sortNo
			this.form.title = data.title
			this.form.sortName = data.sortName
			this.form.status = data.status
			this.form.beginTime = data.beginTime
			this.form.endTime = data.endTime
			this.form.remark = data.remark
		},
	}
}
</script>

<style>
</style>
